<!DOCTYPE html>
<html lang="en" style="font-size:62.5%">
<head>
  <meta charset="utf-8">
  <title>欢瑞世纪影视传媒</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">

  <!-- Link Swiper's CSS -->
  <link rel="stylesheet" href="css/swiper.min.css">
  <link rel="stylesheet" href="css/animate.min.css">
  <link rel="stylesheet" href="css/reset.css">
  <link rel="stylesheet" href="css/public.css">
  <link rel="stylesheet" href="css/p-item.css">
  <link rel="stylesheet" href="css/main.css">
  <script src="js/swiper.min.js"></script>
  <script src="js/swiper.animate.min.js"></script>
  <script src="js/jquery.min.js"></script>
  <script src="js/public.js"></script>
  <!-- Demo styles -->
  <style>
    html, body {
      position: relative;
      height: 100%;
    }

    body {
      background: #eee;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: #000;
      margin: 0;
      padding: 0;
    }

    .swiper-container {
      width: 100%;
      height: 100%;
    }


    .swiper-slide {
      text-align: center;
      font-size: 18px;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .swiper-container-BG, .swiper-container-v .slide-v {
      background: url(images/h5_mask@2x.png) no-repeat left top;
      background-size: 100% 100%;
    }

    .swiper-container-top .swiper-slide {
      width: 80%;
    }

    .swiper-container-bottom .swiper-slide {
      width: 70%;
    }

    .swiper-container-top {
      height: 8%;
      top: 2.946rem;
      background-color: transparent;
      z-index: 77;
    }

    .swiper-container-bottom {
      height: 80%;
      top: 3.5914rem;
      background-color: transparent;
      z-index: 88;
    }

    .swiper-container-bg-s {
      height: 100%;
      background-color: transparent;
      z-index: 1;
      left: 0;
    }
    .swiper-container-bg-s .swiper-wrapper{
     /* width: 134%;*/
      left: 0;
    }
    .swiper-container-bg-s .bg-img {
      width: 100%;
      height: 100%;
    }

    .swiper-container-bg-s img {
      width: 100%;
      height: 100%;
      opacity: .2;
    }
  </style>
</head>
<body>
<!-- Swiper -->
<div class="swiper-container swiper-container-v">
  <div class="swiper-wrapper">
    <div class="swiper-slide  slide-v">
      <div class="company">
        <span class="ani" swiper-animate-effect="slideInLeft" swiper-animate-duration=".5s"
              swiper-animate-delay="0.6s"></span>
        <label class="ani" swiper-animate-effect="zoomIn" swiper-animate-duration=".5s"
               swiper-animate-delay="0.7s">影视作品</label>
      </div>
      <div class="swiper-container swiper-container-top ani" swiper-animate-effect="slideInRight" swiper-animate-duration=".5s" swiper-animate-delay=".5s">
        <div class="swiper-wrapper ">
          <div class="swiper-slide swiper-wrapper-f">
            <div class="date-box">
              <div class="sm-box">
                <p class="date">2017.01</p>
                <div class="point"><p></p></div>
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="date-box">
              <div class="sm-box">
                <p class="date">2017.08</p>
                <div class="point"><p></p></div>
              </div>
            </div>
          </div>
          <div class="swiper-slide">
            <div class="date-box">
              <div class="sm-box">
                <p class="date">2017.05</p>
                <div class="point"><p></p></div>
              </div>
            </div>
          </div>

        </div>
      </div>
      <div class="swiper-container swiper-container-bottom  ani" swiper-animate-effect="slideInRight" swiper-animate-duration=".5s" swiper-animate-delay=".3s">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <a href="detail.html">
              <div class="ds-item">
                <div class="ds-img-box"><img src="images/ds.jpg" alt=""></div>
                <div class="ds-txt-box">
                  <p class="ds-t">大唐荣耀</p>
                  <p class="ds-detail">导演：刘国楠</p>
                  <p class="ds-detail">主演:景甜/任嘉伦/宛西</p>
                  <p class="ds-detail">类型:古装/传奇</p>
                </div>
              </div>
            </a>
          </div>
          <div class="swiper-slide">
            <a href="detail.html">
              <div class="ds-item">
                <div class="ds-img-box"><img src="images/ds.jpg" alt=""></div>
                <div class="ds-txt-box">
                  <p class="ds-t">大唐荣耀</p>
                  <p class="ds-detail">导演：刘国楠</p>
                  <p class="ds-detail">主演:景甜/任嘉伦/宛西</p>
                  <p class="ds-detail">类型:古装/传奇</p>
                </div>
              </div>
            </a>
          </div>
          <div class="swiper-slide">
            <a href="detail.html">
              <div class="ds-item">
                <div class="ds-img-box"><img src="images/ds.jpg" alt=""></div>
                <div class="ds-txt-box">
                  <p class="ds-t">大唐荣耀</p>
                  <p class="ds-detail">导演：刘国楠</p>
                  <p class="ds-detail">主演:景甜/任嘉伦/宛西</p>
                  <p class="ds-detail">类型:古装/传奇</p>
                </div>
              </div>
            </a>
          </div>
        </div>
      </div>
      <div class="swiper-container swiper-container-bg-s  ani" swiper-animate-effect="slideInRight" swiper-animate-duration=".5s" swiper-animate-delay=".5s">
        <div class="swiper-wrapper">
          <div class="swiper-slide">
            <div class="bg-img">
              <img src="images/ds-bg.jpg" alt="">
            </div>
          </div>
          <div class="swiper-slide">
            <div class="bg-img">
              <img src="images/ds-bg.jpg" alt="">
            </div>
          </div>
          <div class="swiper-slide">
            <div class="bg-img">
              <img src="images/ds-bg.jpg" alt="">
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!-- Add Pagination -->
</div>
<a class="next-page " href="introduce.html"  >
  <img src="images/stars_icon_next@3x.png" style="width:20px;height:20px;" id="array" class="resize">
  <span style="color: #fff;margin-left: 10px;font-size: .6rem;float: left;">公司简介</span>
</a>

<!--音乐播放-->
<audio src="haha.mp3" controls="controls" preload id="music1" hidden autoplay>
</audio>
<span id="bf" class="play-btn" onclick="bf();"></span>

<!-- Swiper JS -->
<script src="js/swiper.min.js"></script>

<!-- Initialize Swiper -->
<script>
  var swiperV = new Swiper('.swiper-container-v', {
    direction: 'vertical',
    spaceBetween: 0,
    centeredSlides: true,
    pagination: {
      el: '.swiper-pagination-v',
      clickable: true,
    },

    mousewheelControl: true,
    onInit: function (swiper) {
      swiperAnimateCache(swiper);
      swiperAnimate(swiper);
    },
    onSlideChangeEnd: function (swiper) {
      swiperAnimate(swiper);
    },
    onTransitionEnd: function (swiper) {
      swiperAnimate(swiper);
    }

  });

  var swiperT = new Swiper('.swiper-container-top', {
    pagination: {
      el: '.swiper-container-top',
      clickable: true,
    },
    parallax: true,
    slidesPerView: 'auto',
    centeredSlides: true,
    spaceBetween: 0,
  });
  var swiperBGs = new Swiper('.swiper-container-bg-s', {
    pagination: {
      el: '.swiper-container-bg-s',
      clickable: true,
    },
    parallax: true,
    slidesPerView: 'auto',
    centeredSlides: true,
    spaceBetween: 0,
  });

  var SwiperB = new Swiper('.swiper-container-bottom', {
    pagination: {
      el: '.swiper-container-bottom',
      clickable: true,
    },
    parallax: true,
    slidesPerView: 'auto',
    centeredSlides: true,
    spaceBetween: 0,
    control: [swiperT, swiperBGs],//控制前面两个Swiper
    onSlideChangeStart: function (swiper) {
      if (swiper.activeIndex != 0) {
        $('.swiper-container-top .swiper-slide').eq(swiper.activeIndex).addClass('active-elem').siblings().removeClass('active-elem')
      } else {
        $('.swiper-container-top .swiper-slide').removeClass('active-elem')
      }
    }

  });

/*音乐播放*/
  document.addEventListener('DOMContentLoaded', function () {
    function audioAutoPlay() {
      var audio = document.getElementById('music1');
      audio.play();
      document.addEventListener("WeixinJSBridgeReady", function () {
        audio.play();
      }, false);
    }
    audioAutoPlay();
  });

  function rbf() {
    var audio = document.getElementById('music1');
    audio.currentTime = 0;
  }
  function bf() {
    var audio = document.getElementById('music1');
    if (audio !== null) {
      //检测播放是否已暂停.audio.paused 在播放器播放时返回false.
      if (audio.paused) {
        audio.play();//audio.play();// 这个就是播放
        $('#bf').css('backgroundImage','url("images/h5_icon_music@3x.png")').addClass('play-btn')
      } else {
        audio.pause();// 这个就是暂停
        $('#bf').css('backgroundImage','url("images/h5_icon_music_stop@3x.png")').removeClass('play-btn')
      }
    }
  }
</script>
</body>
</html>
